//
//  ZCDetailListTableViewCell.m
//  VoiceMusic
//
//  Created by dllo on 15/10/21.
//  Copyright © 2015年 zhangdeyu. All rights reserved.
//

#import "ZCDetailListTableViewCell.h"
#import "ZCBaseLabel.h"
#define WIDTH self.contentView.frame.size.width
#define HEIGHT self.contentView.frame.size.height
@implementation ZCDetailListTableViewCell
#pragma mark 进行初始化
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatNewView];
    }
    return self;
}
- (void)creatNewView
{
    self.button = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.contentView addSubview:self.button];
    
    self.loadButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [self.contentView addSubview:self.loadButton];
    [self.loadButton setImage:[UIImage imageNamed:@"iconfont-xiazai-1"] forState:UIControlStateNormal];
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.titleLabel.frame = CGRectMake(60,0, WIDTH - 80, 40);
    self.detailLabel.frame = CGRectMake(60, 40, WIDTH - 100, 20);
    self.detailLabel.font = [UIFont systemFontOfSize:14];
    
    self.button.frame = CGRectMake(20, 25, 20, 20);
    self.loadButton.frame = CGRectMake(WIDTH - 40, 25, 30, 30);

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
